home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVISET.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  28 lines

  1. /*=======================================================*/
  2. /*  TVISET.C                                             */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12.  
  13. /*======================================================*/
  14. /* TVtimer_set   set a timer to expire at a given time  */
  15. /*   Ralf Brown 4/22/88                                 */
  16. /*======================================================*/
  17.  
  18. void pascal TVtimer_set(OBJECT timer,int hour,int minute,int second,int hundredth)
  19. {
  20.    PARMLIST1 p ;
  21.  
  22.    p.num_args = 1 ;
  23.    p.arg[0] = (360000L * hour) + (6000L * minute) + (100L * second) + hundredth ;
  24.    TVsendmsg(WRITE_MSG, TOS, timer, (PARMLIST *)&p) ;
  25. }
  26.  
  27. /* End of TVISET.C */
  28.